package com.caocaog.market.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Description
 * @Author Van.Planifolia
 * @Date 2024/1/12
 * @Version 1.0
 */
@Data
@Accessors(chain = true)
@ApiModel("客户积分变动VO")
public class MemberPointModifyVO {
    @NotEmpty(message = "客户ID必传")
    @ApiModelProperty("客户ID信息")
    private String memberId;
    @NotNull(message = "积分变动信息必传")
    @ApiModelProperty("积分变动值，若为正则为添加，若为负则为减少")
    private BigDecimal point;
    @ApiModelProperty("变动消息")
    private String modifyMessage;
    @Excel(name = "变动类型", width = 15)
    @ApiModelProperty(value = "变动类型,1 推荐奖励，2 消费获得，3 积分兑换,4 注册奖励,5 续费奖励，6 增员奖励，7测试变动")
    @NotEmpty(message = "变动类型不得为空")
    private String modifyType;
}
